package com.zry.controller.error;

import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author Zry
 */

@Controller
public class ErrorPageController implements ErrorController {

    @GetMapping("/error")
    public String errorPage(){
        return "/error/error";
    }

}
